package edu.mse.camel.client.core.handlers;

import edu.mse.camel.client.core.plugin.Activator;
import edu.mse.camel.client.eventbus.pubsub.ISubscriber;
import edu.mse.camel.client.events.EventIDs;
import edu.mse.camel.client.events.IEvent;
import edu.mse.camel.client.log.Debug;
import edu.mse.camel.client.session.team.TeamList;

public class NotifyTeamStatusChangeEventHandler implements ISubscriber{

	private final String handlerName = "Notify Team Status Change Event Handler";
		
	@Override
	public void notifyEvent(IEvent e) {
		if (e.getEventID().equalsIgnoreCase(EventIDs.NOTIFY_TEAM_STATUS_CHANGE_EVENT)) {
			Debug.log_info(Activator.PLUGIN_ID, "Receive notification: " + handlerName);
			TeamList.getInstance().updateTeamMemberList();
		}
	}
}
